package cn.jasonone.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 二维码演示
 * @author xujie
 * @version 1.0.0
 */
@Controller
@RequestMapping("/qrcode")
public class QRCodeController {
    @GetMapping
    public String qrcode(Model model,String content,@RequestParam(defaultValue = "128x128") String viewName){
        model.addAttribute("content",content);
        return viewName;
    }
}
